<?php

namespace frontend\modules\cms\controllers;

use Yii;
use frontend\components\Controller;

/**
 * 资讯详情接口
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class ArticleController extends Controller {

    public $modelClass = 'frontend\modules\cms\models\ArticleView';

    /**
     * {@inheritdoc}
     */
    public function actions() {
        return [
            'view' => [
                'class' => 'yii\rest\ViewAction',
                'modelClass' => $this->modelClass,
            ],
        ];
    }

}
